<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>SHOP 管理中心 - 商品分类 </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="<?php echo base_url('publick/admin/styles/general.css');?>" rel="stylesheet" type="text/css"/>
    <link href="<?php echo base_url('publick/admin/styles/main.css');?>" rel="stylesheet" type="text/css"/>
</head>
<body>

<h1>
    <span class="action-span"><a href="<?php echo site_url('Admin/Category/cat_add'); ?>">添加分类</a></span>
    <span class="action-span1"><a href="index.php?act=main">SHOP 管理中心</a> </span><span id="search_id"
                                                                                       class="action-span1"> - 商品分类 </span>
    <div style="clear:both"></div>
</h1>

<form method="post" action="" name="listForm">
    <!-- start ad position list -->
    <div class="list-div" id="listDiv">
        <table width="100%" cellspacing="1" cellpadding="2" id="list-table">
            <tbody>
            <tr>
                <th>分类名称</th>
                <th>商品数量</th>
                <th>数量单位</th>
                <!--<th>导航栏</th>-->
                <th>是否显示</th>
                <!--<th>价格分级</th>-->
                <th>排序</th>
                <th>操作</th>
            </tr>
            <?php foreach($cates as $cat):?>
            <tr align="center" class="0" id="0_1">
                <td align="left" class="first-cell">
                    <?php echo str_repeat('&nbsp;&nbsp;',$cat['level']);?>
                    <img src="<?php echo base_url('publick/admin/images/menu_minus.gif');?>" id="icon_0_1" width="9"
                         height="9" border="0" style="margin-left:0em" onclick="rowClicked(this)">
                    <span><a href="goods.php?act=list&amp;cat_id=1"><?php echo $cat['cat_name'];?></a></span>
                </td>
                <td width="10%">0</td>
                <td width="10%"><span onclick="listTable.edit(this, 'edit_measure_unit', 1)" title="点击修改内容"
                                      style=""><?php echo $cat['unit'];?></span></td>
                <!--<td width="10%"><img src="<?php echo base_url('publick/admin/images/no.gif');?>"-->
                                     <!--onclick="listTable.toggle(this, 'toggle_show_in_nav', 1)"></td>-->
                <td width="10%"><img src="<?php echo base_url('publick/admin/images/yes.gif');?>"
                                     onclick="listTable.toggle(this, 'toggle_is_show', 1)"></td>
                <!--<td><span onclick="listTable.edit(this, 'edit_grade', 1)" title="点击修改内容" style="">5</span></td>-->
                <td width="10%" align="center"><span onclick="listTable.edit(this, 'edit_sort_order', 1)" title="点击修改内容"
                                                    style=""><?php echo $cat['sort_order'];?></span></td>
                <td width="24%" align="center">
                    <a href="category.php?act=move&amp;cat_id=1">转移商品</a> |
                    <a href="<?php echo site_url('Admin/Category/cat_edit/'.$cat['cat_id']);?>">编辑</a> |
                    <a href="javascript:;" onclick="listTable.remove(1, '您确认要删除这条记录吗?')" title="移除">移除</a>
                </td>
            </tr>
            <?php endforeach;?>

            </tbody>
        </table>
    </div>
</form>

</table>
</div>
</form>


<div id="footer">
    版权所有 &copy; 2006-2013 传智播客 - PHP培训 -
</div>
</div>

</body>
</html>